﻿<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet  [
	<!ENTITY nbsp   "&#160;">
	<!ENTITY copy   "&#169;">
	<!ENTITY reg    "&#174;">
	<!ENTITY trade  "&#8482;">
	<!ENTITY mdash  "&#8212;">
	<!ENTITY ldquo  "&#8220;">
	<!ENTITY rdquo  "&#8221;"> 
	<!ENTITY pound  "&#163;">
	<!ENTITY yen    "&#165;">
	<!ENTITY euro   "&#8364;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:user="CityFly" xmlns:page="urn:page">
	<xsl:output method="html" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
	<xsl:param name="rowcount"/>
	<!--数据库总记录数-->
	<xsl:param name="maxrow"/>
	<!--每页记录数-->
	<xsl:param name="curpage"/>
	<!--当前页码-->
	<xsl:param name="param"/>
	<!--引入 param 参数-->
	<xsl:param name="templatename"/>
	<!--Label.xml 模块名称-->
	<xsl:param name="orderby"/>
	<!--Label.xml orderby 参数-->
	<xsl:param name="where"/>
	<!--Label.xml where 参数-->
	<xsl:param name="runtime"/>
	<!--运行时长-->
	<msxsl:script language="javascript" implements-prefix="user">var n=5;
	<![CDATA[
		function PageList(cP,rC,qStr,mR){
		var pC=(rC%mR==0)?rC/mR:int(rC/mR)+1;
		var pStr="";
		cP=int(cP);
		if (pC>cP+n){var eP=cP+n;}else{var eP=pC;}
		if (cP-n<=0){var sP=1;}else{var sP=cP-n;}
		if(cP>1){pStr=pStr+'<a class="prve" href="?page='+(cP-1)+qStr+'" rel="'+(cP-1)+'">上一页</a>';}
		if (cP>n+1){pStr=pStr+'<a href="?page=1" rel="1">1</a> <span>...</span>';}
		for (var i=sP;i<=eP;i++){
			if (i==cP){
				pStr=pStr+' <a rel="'+i+'" class="current">'+i+'</a> ';
			}else{
				pStr=pStr+' <a rel="'+i+'" href="?page='+i+qStr+'">'+i+'</a> ';
			}
		}
		if(pC>cP+n){pStr=pStr+'<span>...</span> <a rel="pC" href="?page='+pC+qStr+'">'+pC+'</a>';}
		if(cP<pC){pStr=pStr+' <a class="next" rel="'+(cP+1)+'" href="?page='+(cP+1)+qStr+'">下一页</a> ';}
		return pStr;
		}]]></msxsl:script>
	<xsl:template match="/">
	<!--外围边框-->
	<div class="box"> 
		<!--栏目列表-->
		<xsl:value-of select="page:xLoadList('文章列表标题')" disable-output-escaping="yes"/>
		<div class="content" id="datalist">
			<div class="tab">
				<ul class="fl">
					<li><a href="list.html?guid={page:xRequest('guid')}">文章列表</a></li>
					<li class="check"><a href="toplist.html?guid={page:xRequest('guid')}">头条新闻</a></li>
					<li><a href="piclist.html?guid={page:xRequest('guid')}">图片新闻</a></li>
					<li><a href="top.html?guid={page:xRequest('guid')}">TOP文章</a></li>
				</ul>
	<!--			<div class="fr button">
					<span class="fl">日期:</span> 
					<a href="#">当前</a> <a href="#">4月8日</a> <a href="#">4月9日</a> <a href="#">4月10日</a> <a href="#">4月11日</a> <a href="#">4月12日</a> <a href="#" class="hover">4月13日</a> <a href="#">4月14日</a>
				</div>-->
			</div>		
			<div class="search">
				<form id="frmSearch" method="get" action="list.html">
					<input name="guid" type="hidden" value="{page:xRequest('guid')}" />
					<input type="hidden" value="{page:xRequest('like')}" />
					<ul>
						<li>查询:</li>
						<li>
							<select name="day">
								<option value="">无限制</option>
								<option value="3">最近三天</option>
								<option value="7">最近一周</option>
								<option value="15">最近半月</option>
								<option value="30">最近一月</option>
								<option value="90">最近三月</option>
							</select>
						</li>
						<li>
							<input name="keywords" type="text"  />
						</li>
						<li><a href="###" class="btn" id="btnSearch">查询</a><a href="?guid={page:xRequest('guid')}">[全部]</a></li>
					</ul>
				</form>
			</div>
			<div class="table">
				<table width="100%" border="0" cellspacing="1" cellpadding="0">
				<thead>
					<tr>
						<td>文章编号</td>
						<td>文章标题</td>
						<td>头条标题</td>
					</tr>
				</thead>
					<xsl:if test="count(rows/row)!=0">
					<tbody>
						<xsl:for-each select="rows/row">
						<tr class="{page:xIIF(position() mod 2 =1,'','odd')}" title="编号{id}">
							<td><xsl:value-of select="id"/></td>
							<th><a href="view.html?id={id}" style="{page:xIIF(f_isred=1,'color:red','')}"><xsl:value-of select="f_title"/></a></th>
							<td><a href="#" class="icon ad">&nbsp;</a></td>
						<td><input name="isred" type="checkbox" class="checkbox" value="1"><xsl:if test="f_isred=1"><xsl:attribute name="checked">1</xsl:attribute></xsl:if></input></td>
						<td><input name="isvideo" type="checkbox" class="checkbox" value="1"><xsl:if test="f_isvideo=1"><xsl:attribute name="checked">1</xsl:attribute></xsl:if></input></td>
							<td><a href="list.html?guid={f_channel_guid}"><xsl:value-of select="f_channel_name"/></a></td>
							<td class="gray"><xsl:value-of select="concat(substring(f_updatetime,1,10),' ',substring(f_updatetime,12,8))"/></td>
							<td class="gray"><xsl:value-of select="f_author"/></td>
							<td class="gray">否</td>
							<td><a href="#" class="icon modify">&nbsp;</a></td>
						</tr>
						</xsl:for-each>
					</tbody>
					</xsl:if>
				</table>
				<div class="search" >
					<ul class="fl" style="padding:10px 0; ">
						<li>批量设置到的栏目名称:</li>
						<li>
							<input name="" type="text" class="order"  />
						</li>
						<li><a href="#" class="btn">查询</a></li>
					</ul>
					<ul class="fr" style="padding:10px 0; ">
						<li><a href="#" class="btn2">保存</a></li>
					</ul>
			</div>
			</div>
		</div>
	</div>
	</xsl:template>
</xsl:stylesheet>
